package nci60.data.protein

import nci60.project.*

/**
 * The IPI database is produced by clustering proteins from different database.
 * Because of this it is possible that two or more former distinct proteins are grouped together in an new release.
 * One of these identifiers remains the main identifier of the protein while the remaining are kept to be accessible in newer versions.
 *
 * @autor <a href="mailto:Florian.J.Auer@googlemail.com">Florian J. Auer</a>
*/
class ProteinAltName {

    /**
    * alternative IPI identifier
    */
    String altName

    
    /**
    * GRAILS <a href="http://grails.org/doc/latest/guide/GORM.html#gormAssociation" target="_blank">Associations in Gorm</a>
    * <p />
    * <style>.custom-table td{border-top:1pt solid grey;vertical-align:top;} .custom-table{border-collapse:collapse;width:100%;}</style>
    * <table class="custom-table">
    * <tr><td>
    *              sourceIPI
    * </td><td>        belongs to one specific Protein entry from IPI <p />
    *                  <b>See Also:</b> {@link nci60.data.protein.Protein}
    * </td></tr>
    * </table>
    */
    static belongsTo = [sourceIPI:Protein]

    
    /**
    * GRAILS default representation of the object as String
    * @return String representation of the object
    */	
    String toString() {
            return altName
    }
	
    /**
    * GRAILS <a href="http://grails.org/doc/latest/guide/single.html#constraints" target="_blank">Declaring Constraints</a>
    * <p />
    * Constraints in Grails are a way to declaratively specify validation rules for generating objects in GORM.
    */	
    static constraints = {
    }
}
